#!/usr/bin/env python
#coding:utf-8

"""  
  可能网页排版有错.  
  """  
   
import urllib
import sys  

the_site = urllib.urlopen('http://www1.cei.gov.cn/serve/index/showhomepage.asp?template=tqdoc&color=nineteen&blockcode=wntqyb&tj=2')  
   
elem = the_site.readlines()  
td = []  
   
for yy in elem:
    yy = yy.strip()
    if yy[:3].upper() == """<td""".upper():
        td.append(yy)   
weather = []

count = 0
for zz in td:
    if 6 < count <55:
        weather.append(zz)
        count += 1  
   
result = []
for go in weather:
    strl = go.find(""">""", 0)
    strr = go.find("""<""", strl)
    result.append(go[strl+1:strr])   

count = 0  
for data in result:
    if not (count % 6):
        print  
        print "%16s" %(data.strip()),
        count += 1  

print 
